package com.shopx.config.service;

import com.shopx.cmm.DTO.PageDTO;
import com.shopx.config.bean.SysHolidays;
import com.shopx.config.model.SysHolidaysModel;

import java.util.List;
//import com.shopx.base.exception.ShopxException;

/**
 * TODO
 * @author lituo
 * @className: SysHolidays
 * @date 2024-08-13
 */
public interface ISysHolidaysService {

    /**
     * 查询明细记录
     * @author lituo
     * @date 2024-08-13
     * @param sysHolidays
     * @return SysHolidaysModel
     */
    SysHolidaysModel selectByPrimaryKey(SysHolidays sysHolidays);

    /**
     * 新增记录
     * @author lituo
     * @date 2024-08-13
     * @param sysHolidays
     * @return int
     */
    int insertSelective(SysHolidays sysHolidays);

    /**
     * 修改记录
     * @author lituo
     * @date 2024-08-13
     * @param sysHolidays
     * @return int
     */
    int updateByPrimaryKeySelective(SysHolidays sysHolidays);

    /**
     * 删除记录
     * @author lituo
     * @date 2024-08-13
     * @param sysHolidays
     * @return int
     */
    int deleteByPrimaryKey(SysHolidays sysHolidays);
	

	/**
     * 查询总记录数
     * @author lituo
     * @date 2024-08-13
     * @param sysHolidaysModel
     * @return int
     */
    int selectCount(SysHolidaysModel sysHolidaysModel);

    /**
     * 查询列表
     * @author lituo
     * @date 2024-08-13
     * @param sysHolidaysModel
     * @return List<SysHolidaysModel>
     */
    List<SysHolidaysModel> selectList(SysHolidaysModel sysHolidaysModel);

    /**
     * 分页查询
     * @author lituo
     * @date 2024-08-13
     * @param sysHolidaysModel
     * @return PageModel<SysHolidaysModel>
     */
    PageDTO<SysHolidaysModel> getListPage(SysHolidaysModel sysHolidaysModel);

    /**
     * 获取指定日期后N个工作日的日期
     * @param begDt
     * @param disDays
     * @return
     */
    String calWorkDay(String begDt, Integer disDays) throws Exception;
	
}

